import request from "./request";
import request2 from "./request2";
export function getSongDetail (ids){
    return request({
        url:"/song/detail",
        params:{
            ids
        }
    })
}
export function getLyric (id){
    return request({
        url:"/lyric",
        params:{
            id
        }
    })
}
//获取歌曲评论
export function getMusicComment (id,limit,offset,before){
    return request({
        url:"/comment/music",
        params:{
            id,
            limit,
            offset,
            before
        }
    })
}
//获取楼层评论
export function getFloorComments(parentCommentId,id,type){
    return request2({
        url:'/comment/floor',
        params:{
            parentCommentId,
            id,
            type
        }
    })
}
//发表评论
export function sendComments(t,type,id,content){
    return request2({
        url:'/comment',
        withCredentials: true,
        params:{
            t,
            type,
            id,
            content,
        }
    })
}
// 删除评论
export function delComments(t,type,id,commentId){
    return request2({
        url:'/comment',
        withCredentials: true,
        params:{
            t,
            type,
            id,
            commentId
        }
    })
}